package org.micro.frame.mybatis.configuration;

import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.io.Serializable;
import java.util.Map;

@Data
@ToString
@Configuration
@ConfigurationProperties(prefix = "spring")
public class MultipleDataSourceConfig {

    private Map<String, MultipleDataSourceProperties> multipleDatasource;

    @Data
    @ToString
    public static class MultipleDataSourceProperties implements Serializable {
        private String url;
        private String username;
        private String password;
        private String driverClassName;
    }

}
